﻿using System;
namespace fanli.Model
{
	/// <summary>
	/// 帮助表实体类：fanli_helps 。
	/// </summary>
	[Serializable]
	public class fanli_helps
	{
		public fanli_helps()
		{}

		#region Model
		private int _id; //id
		private int _cata; //类别
		private string _title; //标题
		private string _content; //内容
		private DateTime? _pubDate; //发布日期
		private string _source; //来源
		private int _hits; //点击
		private int _sortid; //排序
		private string _ext; //扩展


        /// <summary>
		/// id
		/// </summary>
		public int id
		{
			set{ _id=value;}
			get{return _id;}
		}
        /// <summary>
		/// 类别
		/// </summary>
		public int cata
		{
			set{ _cata=value;}
			get{return _cata;}
		}
        /// <summary>
		/// 标题
		/// </summary>
		public string title
		{
			set{ _title=value;}
			get{return _title;}
		}
        /// <summary>
		/// 内容
		/// </summary>
		public string content
		{
			set{ _content=value;}
			get{return _content;}
		}
        /// <summary>
		/// 发布日期
		/// </summary>
		public DateTime? pubDate
		{
			set{ _pubDate=value;}
			get{return _pubDate;}
		}
        /// <summary>
		/// 来源
		/// </summary>
		public string source
		{
			set{ _source=value;}
			get{return _source;}
		}
        /// <summary>
		/// 点击
		/// </summary>
		public int hits
		{
			set{ _hits=value;}
			get{return _hits;}
		}
        /// <summary>
		/// 排序
		/// </summary>
		public int sortid
		{
			set{ _sortid=value;}
			get{return _sortid;}
		}
        /// <summary>
		/// 扩展
		/// </summary>
		public string ext
		{
			set{ _ext=value;}
			get{return _ext;}
		}
		#endregion Model

		#region txt document
		/*
帮助表,helps
id,类别,标题,内容,发布日期,来源,点击,排序,扩展
id,cata,title,content,pubDate,source,hits,sortid,ext
i,i,c256,t,d,c256,i,i,c100

--------------------------
-- 创建表[帮助表]开始: 
-- alter table  [fanli_helps] add
-- IF EXISTS (SELECT 1 FROM sysobjects WHERE xtype='u' AND name='fanli_helps') drop table fanli_helps
  CREATE TABLE [fanli_helps] (
	 [id] integer IDENTITY (1, 1) PRIMARY KEY NOT NULL ,
	 [cata] int,
	 [title] [varchar] (256),
	 [content] [text],
	 [pubDate] [datetime],
	 [source] [varchar] (256),
	 [hits] int,
	 [sortid] int,
	 [ext] [varchar] (100)
  )

 exec sp_addextendedproperty N'MS_Description',N'帮助表 ',N'user',N'dbo',N'table',N'fanli_helps', NULL, NULL
 exec sp_addextendedproperty N'MS_Description',N'id',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'id'
 exec sp_addextendedproperty N'MS_Description',N'类别',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'cata'
 exec sp_addextendedproperty N'MS_Description',N'标题',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'title'
 exec sp_addextendedproperty N'MS_Description',N'内容',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'content'
 exec sp_addextendedproperty N'MS_Description',N'发布日期',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'pubDate'
 exec sp_addextendedproperty N'MS_Description',N'来源',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'source'
 exec sp_addextendedproperty N'MS_Description',N'点击',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'hits'
 exec sp_addextendedproperty N'MS_Description',N'排序',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'sortid'
 exec sp_addextendedproperty N'MS_Description',N'扩展',N'user',N'dbo',N'table',N'fanli_helps',N'column',N'ext'

-- 创建表[帮助表]结束。 
--------------------------

		*/
		#endregion document
	}
}

